package com.aifast.crm.customer.entity;


import com.aifast.common.base.BaseEntity;
import com.aifast.common.dict.DictBind;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 客户联系人对象 crm_contacts
 *
 * @author fujian
 * @date 2022-08-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CrmContacts extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 客户id
     */
    @ExcelProperty("客户id")
    @NotBlank(message = "客户id 不能为空！")
    private Integer customerId;

    /**
     * 名称
     */
    @ExcelProperty("名称")
    @NotBlank(message = "名称 不能为空！")
    private String name;

    @DictBind(type = "sex")
    private Integer sex;

    /**
     * 电话
     */
    @ExcelProperty("电话")
    private String mobile;

    /**
     * 邮箱
     */
    @ExcelProperty("邮箱")
    private String email;

    /**
     * 微信
     */
    @ExcelProperty("微信")
    private String wx;

    /**
     * 是否决策人
     */
    @ExcelProperty("是否决策人")
    @DictBind(type = "boolean")
    private String decisionMaker;

    /**
     * 地址
     */
    @ExcelProperty("地址")
    private String address;

}
